#include "set_error_insert.h"
#include "common.h"

static error_insert_func e_func = 0 ;

void set_error_insert(error_insert_func func)
{
	e_func = func ;
}

void error_insert(word* state , int round)
{
	if ( e_func != 0 )
	{
		e_func(state , round ) ;
	}
}